package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * CwzbSyfr generated by hbm2java
 */
@Entity
@Table(name = "cwzb_syfr")
public class CwzbSyfr implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private long ny;
    private BigDecimal jzc;
    private BigDecimal nzhsr;
    private BigDecimal zcfzl;
    private BigDecimal zzsrzb;
    private BigDecimal jfzgl;
    private BigDecimal zsrzzl;
    private BigDecimal jzczzl;
    private BigDecimal szjyl;
    private BigDecimal zzsrcdb;
    private BigDecimal cdb;

    public CwzbSyfr()
    {
    }

    public CwzbSyfr( Long id, long ny )
    {
        this.id = id;
        this.ny = ny;
    }

    public CwzbSyfr( Long id,
                     Jbqk jbqk,
                     String username,
                     String operation,
                     Date optdate,
                     long ny,
                     BigDecimal jzc,
                     BigDecimal nzhsr,
                     BigDecimal zcfzl,
                     BigDecimal zzsrzb,
                     BigDecimal jfzgl,
                     BigDecimal zsrzzl,
                     BigDecimal jzczzl,
                     BigDecimal szjyl,
                     BigDecimal zzsrcdb,
                     BigDecimal cdb )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.ny = ny;
        this.jzc = jzc;
        this.nzhsr = nzhsr;
        this.zcfzl = zcfzl;
        this.zzsrzb = zzsrzb;
        this.jfzgl = jfzgl;
        this.zsrzzl = zsrzzl;
        this.jzczzl = jzczzl;
        this.szjyl = szjyl;
        this.zzsrcdb = zzsrcdb;
        this.cdb = cdb;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "ny", nullable = false)
    public long getNy()
    {
        return this.ny;
    }

    public void setNy( long ny )
    {
        this.ny = ny;
    }

    @Column(name = "jzc", precision = 18)
    public BigDecimal getJzc()
    {
        return this.jzc;
    }

    public void setJzc( BigDecimal jzc )
    {
        this.jzc = jzc;
    }

    @Column(name = "nzhsr", precision = 18)
    public BigDecimal getNzhsr()
    {
        return this.nzhsr;
    }

    public void setNzhsr( BigDecimal nzhsr )
    {
        this.nzhsr = nzhsr;
    }

    @Column(name = "zcfzl", precision = 18, scale = 4)
    public BigDecimal getZcfzl()
    {
        return this.zcfzl;
    }

    public void setZcfzl( BigDecimal zcfzl )
    {
        this.zcfzl = zcfzl;
    }

    @Column(name = "zzsrzb", precision = 18, scale = 4)
    public BigDecimal getZzsrzb()
    {
        return this.zzsrzb;
    }

    public void setZzsrzb( BigDecimal zzsrzb )
    {
        this.zzsrzb = zzsrzb;
    }

    @Column(name = "jfzgl", precision = 18, scale = 4)
    public BigDecimal getJfzgl()
    {
        return this.jfzgl;
    }

    public void setJfzgl( BigDecimal jfzgl )
    {
        this.jfzgl = jfzgl;
    }

    @Column(name = "zsrzzl", precision = 18, scale = 4)
    public BigDecimal getZsrzzl()
    {
        return this.zsrzzl;
    }

    public void setZsrzzl( BigDecimal zsrzzl )
    {
        this.zsrzzl = zsrzzl;
    }

    @Column(name = "jzczzl", precision = 18, scale = 4)
    public BigDecimal getJzczzl()
    {
        return this.jzczzl;
    }

    public void setJzczzl( BigDecimal jzczzl )
    {
        this.jzczzl = jzczzl;
    }

    @Column(name = "szjyl", precision = 18, scale = 4)
    public BigDecimal getSzjyl()
    {
        return this.szjyl;
    }

    public void setSzjyl( BigDecimal szjyl )
    {
        this.szjyl = szjyl;
    }

    @Column(name = "zzsrcdb", precision = 18, scale = 4)
    public BigDecimal getZzsrcdb()
    {
        return this.zzsrcdb;
    }

    public void setZzsrcdb( BigDecimal zzsrcdb )
    {
        this.zzsrcdb = zzsrcdb;
    }

    @Column(name = "cdb", precision = 18, scale = 4)
    public BigDecimal getCdb()
    {
        return this.cdb;
    }

    public void setCdb( BigDecimal cdb )
    {
        this.cdb = cdb;
    }

}
